/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.uhk.ppro.response.model;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 *
 * @author Martin Zmítko <martin.zmitko@gmail.com
 *
 * TODO: zvazit predelani na inheritance type
 */

@MappedSuperclass
public abstract class BaseEntity {

    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private int id;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId()
    {
        return this.id;
    }

}
